<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>JavaScript对象</title>
    <meta name="keywords" content="HTML基础"/>
    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <style type="text/css">
        span {
            margin: 20px;
        }
        div {
            text-align: left;
            padding:30px;
        }
    </style>
    <script>
        //整个文档加载完成之后，执行
        window.onload=function(){
            function Person(firstName,lastName,age) {
                this.firstName = firstName;
                this.lastName= lastName;
                this.age = age;
                this.fullName=function(){
                    return firstName+" "+lastName;
                }
            }
            Person.prototype.money="3K";
            Person.prototype.address="江苏省苏州市";
            var p1=new Person("wu","qiang",27);
            console.log(p1.address);
            console.log(p1.money);
            var p2=new Person("gao","xiaojie",28);
            console.log(p2);
        }
    </script>
</head>
<body>

<form action="output.html">
    <div>
        <span>姓名：</span><span><input type="text" name="username" required></span>
    </div>
    <div>
        <span><input type="submit" value="提交"></span><span><input type="reset" value="重置"></span>
    </div>
</form>

<script>

</script>
</body>
</html>
